import 'package:hive/hive.dart';

part 'video_model.g.dart';

@HiveType(typeId: 3)
class VideoModel extends HiveObject {
  @HiveField(0)
  String id;

  @HiveField(1)
  String title;

  @HiveField(2)
  String description;

  @HiveField(3)
  String videoUrl;

  @HiveField(4)
  String thumbnailUrl;

  @HiveField(5)
  bool isCollected;

  VideoModel({
    required this.id,
    required this.title,
    required this.description,
    required this.videoUrl,
    required this.thumbnailUrl,
    this.isCollected = false,
  });
}
